<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
	<head>
		<title>Hiring-企业信息</title>
		 <%@ include file="/WEB-INF/views/common/import.jsp"%>
	</head>
	<body>
		<div class="container">
		 <ol class="breadcrumb">
		  <li><a href="<%=request.getContextPath()%>/CompanyServlet?command=main">主页</a></li>
		  <li class="active">企业信息</li>
	</ol>
		<h1><strong>企业信息</strong></h1>
		<hr>
		<c:if test="${!empty msg}">
			<div class="alert alert-danger alert-dismissible fade in" role="alert">
		      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="  ">×</span></button>
		      <strong>${msg }</strong>
		    </div>
	    </c:if>
			<form role="form" method="post" action="CompanyServlet?command=update">
			<input type="hidden" name="id" value="${company.id}">
			  <div class="form-group">
			    <label for="name">企业名称</label>
			    <input type="text" id="name" name="name" class="form-control" value="${company.name}" data-rule="required">
			  </div>
			    <div class="form-group">
			    <label for="email">企业邮箱</label>
			    <input type="text" id="email" name="email" class="form-control" value="${company.email}"  data-rule="required;email">
			  </div>
			    <div class="form-group">
			    <label for="phone">联系电话</label>
			    <input type="text" id="phone" name="phone" class="form-control" value="${company.phone}" data-rule="required; mobile">
			  </div>
			    <div class="form-group">
			    <label for="linkman">联系人</label>
			    <input type="text" id="linkman" name="linkman" class="form-control" value="${company.linkman}" data-rule="required">
			  </div>
			    <div class="form-group">
			    <label for="address">联系地址</label>
			    <input type="text" id="address" name="address" class="form-control" value="${company.address}" data-rule="required">
			  </div>
			    <div class="form-group">
			    <label for="numbers">人数</label>
			    <input type="text" id="numbers" name="numbers" class="form-control" value="${company.numbers}" data-rule="required">
			  </div>
			   <div class="form-group">
			    <label for="slogan">服务宗旨</label>
			    <textarea rows="10" cols="30" name="slogan" id="slogan" class="form-control" data-rule="required">${company.slogan}</textarea>
			  </div>
			  <button type="submit" class="btn btn-default">修改</button>
			   <a href="<%=request.getContextPath()%>/CompanyServlet?command=main">
		        <button class="btn btn-primary " type="button">返回主页</button>
		        </a>
			</form>
		</div>
	</body>
</html>